package com.hymanting.flinkapi.datastream;

import org.apache.flink.streaming.api.functions.timestamps.BoundedOutOfOrdernessTimestampExtractor;
import org.apache.flink.streaming.api.windowing.time.Time;

/**
 * @Author hxchen
 * @Date 2021/7/7
 */
public class WordCountTimeAssigner extends BoundedOutOfOrdernessTimestampExtractor<String> {

    public WordCountTimeAssigner() {
        super(Time.seconds(5));
    }

    @Override
    public long extractTimestamp(String s) {
        return 0L;
    }
}
